<div class="hbox hbox-auto-xs hbox-auto-sm">
	<div class="col">
		<div ng-controller="roleController">
			<div class="bg-light lter b-b wrapper-md">
				<div class="col-md-7">
					<h1 class="font-thin h3">角色管理</h1>
				</div>
				<div clas="col-md-5 ">
					<div class="text-right">
						<button type="submit" class="btn m-b-xs w-xs btn-default text-right bg-light"
							ui-sref="app.system.role.edit({type:'add' })">
							<strong>新增</strong>
						</button>
					</div>
				</div>
			</div>
			<div class="panel panel-default m-b-none">
				<div class="panel-body">
					<form class="form-inline" role="form">
						<div class="form-group">
							<input class="form-control" placeholder="角色编码" ng-model="params.role.term">
						</div>
						<div class="form-group">
							<input class="form-control" placeholder="名称" ng-model="params.name.term">
						</div>
						<div class="form-group">
							<input class="form-control" placeholder="备注" ng-model="params.remarks.term">
						</div>
						<div class="form-group">
							<button type="button" class="btn btn-default form-control" ng-click="Table1.load()">查询</button>
						</div>
						<div class="form-group">
							<button type="button" class="btn btn-default form-control" ng-click="Table1.reset()">清空</button>
						</div>
					</form>
				</div>
			</div>
			<div class="wrapper-md no-padder">
				<div class="panel panel-default">
					<table class="table m-b-none" app-footable data-page="false" data-filter-text-only="true">
						<thead>
							<tr>
								<th data-sort-name="role">角色编码</th>
								<th data-sort-name="cname">角色名称</th>
								<th data-sort-ignore="true">备注</th>
								<th data-sort-ignore="true">操作</th>
							</tr>
						</thead>
						<tbody>
							<tr ng-repeat="dic in Table1.page.rows">
								<td ng-bind="dic.role"></td>
								<td ng-bind="dic.cname"></td>
								<td ng-bind="dic.remarks"></td>
								<td>
									<a ui-sref="app.system.role.view({id : dic.id})"><i class="glyphicon glyphicon-eye-open"></i>查看</a>&nbsp;&nbsp;
									<a ui-sref="app.system.role.edit({id : dic.id, type:'update' })"><i class="glyphicon glyphicon-edit"></i>编辑</a>&nbsp;&nbsp;
									<a ng-click="deleteRole(dic.id)"><i class="glyphicon glyphicon-remove"></i>删除</a>&nbsp;&nbsp;
									<a ui-sref="app.system.role.list.viewAuth({id : dic.id})"><i class="glyphicon glyphicon-user"></i>查询权限</a>&nbsp;&nbsp;
									<a ui-sref="app.system.role.list.editAuth({id : dic.id})"><i class="glyphicon glyphicon-bullhorn"></i>修改权限</a>
								</td>
							</tr>
						</tbody>
						<tfoot>
							<tr>
								<td colspan="7" class="text-center">
									<div app-pagination="Table1"></div>
								</td>
							</tr>
						</tfoot>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div class="col w-lg bg-light lter b-l bg-auto">
		<div class="vbox">
			<div ui-view></div>
		</div>
	</div>
</div>

